<?php $this->pageTitle=Yii::app()->name . ' - 忘记密码';?>
<div class="main_con">
<p class="tit_bar">忘记密码</p>
			<div class="info_con">				
				
				<?php if($msg):?>
					<div style="background:#EFF4FA;color:#f30;"><?php echo $msg;?></div>
				<?php endif;?>
				<?php if($userEmail&&!$msg):?>
					<div class="info_title">
						<img src="/images/sign_info.jpg" />
						<span class="title">请输入您新设的密码</span>
					</div>
					<?php $form = $this->beginWidget('CActiveForm',array(
						'id'=>'password-form',
						'enableAjaxValidation'=>true,
						'focus'=>'#user_name',
						'htmlOptions'=>array('class'=>'main_con'),
						'skin'=>'sss',
						//'action'=>'/account/password',
						//'stateful'=>true,
						//'viewPath'=>'ss',
					));?>
					<?php echo CHtml::errorSummary($userModel); ?>
					<div class="email_col">
						<?php echo $form->labelEx($userModel,'email',array('class'=>'email'));?>
						<?php echo $form->textField($userModel,'email',array('class'=>'email_txt','value'=>$userEmail,'disabled'=>'disabled'));?>
						<span class="remind"><?php echo $form->error($userModel,'email');?></span>
	<!--					<span class="remind">请输入合法的邮箱地址</span>-->
					</div>
					<div class="psw_col">
						<?php echo $form->labelEx($userModel,'password',array('class'=>'password'))?>
						<?php echo $form->passwordField($userModel,'password',array('class'=>'psw_txt','value'=>''));?>
						<span class="remind"><?php echo $form->error($userModel,'password');?></span>
	<!--					<span class="remind">密码至少4位</span>-->
					</div>
					<div class="re_psw_col">
						<?php echo $form->labelEx($userModel,'repassword',array('class'=>'re_psw'));?>
						<?php echo $form->passwordField($userModel,'repassword',array('class'=>'re_psw_txt'));?>
						<span class="remind"><?php echo $form->error($userModel,'repassword');?></span>
	<!--					<span class="remind">两次输入密码不一致</span>-->
					</div>
					<?php echo CHtml::submitButton('重设密码',array('class'=>'forget_resetpassword'));?>
					<?php $this->endWidget();?>
				
				<?php else:?>
					<div class="info_title">
						<img src="/images/sign_info.jpg" />
						<span class="title">输入您的注册邮箱，以便取回密码</span>
					</div>
					<?php $form = $this->beginWidget('CActiveForm',array(
						'id'=>'forget-form',
						'enableAjaxValidation'=>true,
						'focus'=>'#user_name',
						'htmlOptions'=>array('class'=>'main_con'),
						'skin'=>'sss',
						//'stateful'=>true,
						//'viewPath'=>'ss',
					));?>
					<?php echo CHtml::errorSummary($emailModel); ?>
					<div class="name_col">
						<?php echo $form->labelEx($emailModel,'email',array('class'=>'name'));?>
						<?php echo $form->textField($emailModel,'email',array('class'=>'name_txt','onfocus'=>'this.value=""','value'=>''));?>
	<!--					<img src="/images/ok.jpg" />-->
						<span class="remind"><?php echo $form->error($emailModel,'email');?></span>
	<!--					<span class="remind">糟糕此用户名已存在，换个试试</span>-->
					</div>
					<?php echo CHtml::submitButton('提交',array('class'=>'forget_sub'));?>
					<?php $this->endWidget();?>
				<?php endif;?>
			</div>
</div>